#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QGridLayout>
#include <QPushButton>
#include <QApplication>
#include <QStyle>
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);


    QGridLayout *pGlayout = new QGridLayout(ui->centralwidget);
    for(int i = 0; i < 70; i++){
        pGlayout->addWidget(new QPushButton(QApplication::style()->standardIcon((QStyle::StandardPixmap)i),QString::number(i),this),i/10,i%10);
    }
}

MainWindow::~MainWindow()
{
    delete ui;
}

